/* 策略管理接口 */
import request from '@/utils/request'

export const policyList = (data) => request.get('/api/vm-service/policy/search', {
  params: data
})
/* 删除策略 */
export const delPolicy = (id) => request.delete('/api/vm-service/policy/' + id)

/* 新增策略 */
export const addPolicy = (data) => request.post('/api/vm-service/policy', data)

/* 修改策略 */
export const changePolicy = (id, data) => request.put('/api/vm-service/policy/' + id, data)

/* 获取策略详情 */
export const getPolicy = (id, data) => request.get('/api/vm-service/policy/vmList/' + id, { params: data })
